// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  ssr: true,
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },
  devServer: {
    host: '0.0.0.0'
  },
  app: {
    head: {
      link: [
        { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
        { rel: 'stylesheet', href: '//at.alicdn.com/t/c/font_4859571_eqa15kws1e5.css' },
      ],
      meta: [
        { name: "referrer", content: "no-referrer" },
        { name: 'description', content: 'iamcola\' blog.' }  
      ],
      title: 'iamcola',
    }
  },
  runtimeConfig: {
    public: {
      baseURL: process.env.BASE_URL
    },
  },
  css: ['~/assets/css/global.css'],
  modules: [
    '@nuxtjs/tailwindcss',
    '@nuxt/image',
    '@nuxt/content',
    '@nuxt/eslint',
  ],
  image: {},
  tailwindcss: {
    exposeConfig: true,
    viewer: true,
  },
  content: {
    build: {
      markdown: {
        highlight: {
          theme: 'monokai',
          langs: ['json', 'js', 'ts', 'html', 'css', 'vue', 'shell', 'mdc', 'md', 'yaml']
        }
      }
    }
  }
});